﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HiSportApplet.Core.Const
{

    /// <summary>
    /// 缓存相关常量
    /// </summary>
    public class CacheConst
    {
        /// <summary>
        /// 用户缓存
        /// </summary>
        public const string KeyAllUser = "sys_all_user:";

        /// <summary>
        /// 用户缓存
        /// </summary>
        public const string KeyUser = "sys_user:";

        /// <summary>
        /// 用户菜单缓存
        /// </summary>
        public const string KeyUserMenu = "sys_user_menu:";

        /// <summary>
        /// 用户权限缓存（按钮集合）
        /// </summary>
        public const string KeyUserButton = "sys_user_button:";

        /// <summary>
        /// 用户机构缓存
        /// </summary>
        public const string KeyUserOrg = "sys_user_org:";

        /// <summary>
        /// 角色最大数据范围缓存
        /// </summary>
        public const string KeyRoleMaxDataScope = "sys_role_maxDataScope:";

        /// <summary>
        /// 在线用户缓存
        /// </summary>
        public const string KeyUserOnline = "sys_user_online:";

        /// <summary>
        /// 图形验证码缓存
        /// </summary>
        public const string KeyVerCode = "sys_verCode:";

        // 手机验证码缓存
        public const string KeyPhoneVerCode = "sys_phoneVerCode:";

        /// <summary>
        /// 租户缓存
        /// </summary>
        public const string KeyTenant = "sys_tenant";

        /// <summary>
        /// 常量下拉框
        /// </summary>
        public const string KeyConst = "sys_const:";

        /// <summary>
        /// 所有缓存关键字集合
        /// </summary>
        public const string KeyAll = "sys_keys";
    }
}